package cobersky.skinUI.components
{
	import cobersky.skinUI.core.Component;
	import cobersky.skinUI.skins.scrollerbar.DefaultHScrollerBarSkin;

	public class HScrollerBar extends ScrollerBarBase
	{
		public function HScrollerBar()
		{
		}
		override public function create():void{
			if(!_skinClass)_skinClass=DefaultHScrollerBarSkin;
			attachSkin();
			_bar.x=_subButton.width;
			_plusButton.x=_bar.x+_bar.width;
		}
		
		override public function set width(value:Number):void
		{
			_bar.width=value-_plusButton.width-_subButton.width;
			_plusButton.x=value-_plusButton.width;
		}
	}
}